package com.ruoyi.project.system.newfunction.service.impl;

import com.ruoyi.project.system.newfunction.domain.Exam_cost;
import com.ruoyi.project.system.newfunction.mapper.Exam_costMapper;
import com.ruoyi.project.system.newfunction.service.Exam_costService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;
@Service
@Transactional
public class Exam_costServiceImpl implements Exam_costService {
    @Autowired
    private Exam_costMapper exam_costMapper;
    @Override
    public List<Exam_cost> findAllExamCostByPage(Exam_cost exam_cost) {
        return exam_costMapper.findAllExamCost(exam_cost);
    }

    @Override
    public int addExamCost(Exam_cost exam_cost) {
        exam_cost.setCreateTime(new Date());
        return exam_costMapper.addExamCost(exam_cost);
    }

    @Override
    public Exam_cost getExamCost(Integer examId) {
        return exam_costMapper.getExamCost(examId);
    }

    @Override
    public int updateExamCost(Exam_cost exam_cost) {
        exam_cost.setUpdateTime(new Date());
        return exam_costMapper.updateExamCost(exam_cost);
    }

    @Override
    public int removeExamCost(Long[] examIds) {
        return exam_costMapper.removeExamCost(examIds);
    }
}
